package com.my.result;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class BasePageReq implements Serializable {

    @NotNull(message = "页码不能为空")
    @Min(value = 1, message = "页码至少是1")
    private Integer current;

    @NotNull(message = "页数不能为空")
    @Min(value = 1, message = "页数至少是1")
    private Integer pageSize;

}
